<template>
  <div>
    <head-top routerName="noviceStrategy" title="新手攻略"></head-top>
    <div class="content-wrap">
      <div class="noviceStrategy">
        <ul>
          <router-link
            :to="{ name: 'noviceStrategyDetails', query: { id: item.id } }"
            v-for="item in list"
            :key="item.id"
          >
            <li>
              <span>{{ item.label }}</span>
              <van-icon name="arrow" />
            </li>
          </router-link>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
import HeadTop from "@/components/head";
import { Icon } from "vant";
import { getList } from "./list";
export default {
  components: {
    [Icon.name]: Icon,
    HeadTop,
  },
  data() {
    return {
      list: getList(),
    };
  },
};
</script>
<style lang="less" scoped>
.noviceStrategy {
  ul {
    li {
      margin-bottom: 13px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 56px;
      padding: 0 20px;
      font-size: 14px;
      font-weight: 500;
      color: #333333;
      background: #ffffff;
      box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.06);
      .van-icon {
        color: #666666;
      }
    }
  }
}
</style>